package p8;

/**
 * @author krystal
 * @date 2022/11/12 12:53
 */
interface USB{
    public static final String MSG="全局常量";
    public abstract void plugIn();
    public abstract void work();
}

class Mouse implements USB{

    @Override
    public void plugIn() {
        System.out.println("鼠标安装驱动中......");
    }

    @Override
    public void work() {
        System.out.println("鼠标可以正常开始工作了......");
    }
}

public class Demo2 {
    public static void main(String[] args) {
        USB usb=new Mouse();
        usb.plugIn();
        usb.work();
    }
}
